from django.core.mail import send_mail
from django3.settings import EMAIL_HOST_USER

def my_send_mail(title,content,to_email):
    try:
        res = send_mail(title, content, EMAIL_HOST_USER,
                [to_email])
    except Exception:
        return False

    return bool(res)


